diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-06-05 02:55:25 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 22:47:49 +0200 |
commit | b0683aa638b3326c6fc22e5290dfa75e08bd83f5 (patch) | |
tree | 8287f1eff3c76dc7cf6c42208efebb1510b075b2 /fs/hugetlbfs | |
parent | Take ->i_bdev/->i_cdev handling out of clear_inode() (diff) | |
download | linux-b0683aa638b3326c6fc22e5290dfa75e08bd83f5.tar.xz linux-b0683aa638b3326c6fc22e5290dfa75e08bd83f5.zip |
new helper: end_writeback()
Essentially, the minimal variant of ->evict_inode(). It's
a trimmed-down clear_inode(), sans any fs callbacks. Once
it returns we know that no async writeback will be happening;
every ->evict_inode() instance should do that once and do that
before doing anything ->write_inode() could interfere with
(e.g. freeing the on-disk inode).
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hugetlbfs')
-rw-r--r-- | fs/hugetlbfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index bf1a2f400e70..6e5bd42f3860 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -374,7 +374,7 @@ static void truncate_hugepages(struct inode *inode, loff_t lstart) static void hugetlbfs_evict_inode(struct inode *inode) { truncate_hugepages(inode, 0); - clear_inode(inode); + end_writeback(inode); } static inline void |