|
@@ -389,34 +389,6 @@ int nilfs_mdt_forget_block(struct inode *inode, unsigned long block)
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * nilfs_mdt_mark_block_dirty - mark a block on the meta data file dirty.
|
|
|
- * @inode: inode of the meta data file
|
|
|
- * @block: block offset
|
|
|
- *
|
|
|
- * Return Value: On success, it returns 0. On error, the following negative
|
|
|
- * error code is returned.
|
|
|
- *
|
|
|
- * %-ENOMEM - Insufficient memory available.
|
|
|
- *
|
|
|
- * %-EIO - I/O error
|
|
|
- *
|
|
|
- * %-ENOENT - the specified block does not exist (hole block)
|
|
|
- */
|
|
|
-int nilfs_mdt_mark_block_dirty(struct inode *inode, unsigned long block)
|
|
|
-{
|
|
|
- struct buffer_head *bh;
|
|
|
- int err;
|
|
|
-
|
|
|
- err = nilfs_mdt_read_block(inode, block, 0, &bh);
|
|
|
- if (unlikely(err))
|
|
|
- return err;
|
|
|
- mark_buffer_dirty(bh);
|
|
|
- nilfs_mdt_mark_dirty(inode);
|
|
|
- brelse(bh);
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
int nilfs_mdt_fetch_dirty(struct inode *inode)
|
|
|
{
|
|
|
struct nilfs_inode_info *ii = NILFS_I(inode);
|