diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-10-19 11:48:57 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2017-10-26 10:44:22 +0200 |
commit | 9c77f754f8a29f11b3f525100f092d9af874daa8 (patch) | |
tree | 2c90f3459d82e9b3e1073d72868e979add1a4ff9 /fs/f2fs/node.c | |
parent | 4e46a023c515de61df61770e03673c3f72cc6b20 (diff) | |
download | linux-stable-9c77f754f8a29f11b3f525100f092d9af874daa8.tar.gz linux-stable-9c77f754f8a29f11b3f525100f092d9af874daa8.tar.bz2 linux-stable-9c77f754f8a29f11b3f525100f092d9af874daa8.zip |
f2fs: remove obsolete pointer for truncate_xattr_node
This patch removes obosolete parameter for truncate_xattr_node.
Suggested-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r-- | fs/f2fs/node.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index d571961f42a7..bdb7e92636b4 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -962,7 +962,8 @@ fail: return err > 0 ? 0 : err; } -int truncate_xattr_node(struct inode *inode, struct page *page) +/* caller must lock inode page */ +int truncate_xattr_node(struct inode *inode) { struct f2fs_sb_info *sbi = F2FS_I_SB(inode); nid_t nid = F2FS_I(inode)->i_xattr_nid; @@ -978,10 +979,7 @@ int truncate_xattr_node(struct inode *inode, struct page *page) f2fs_i_xnid_write(inode, 0); - set_new_dnode(&dn, inode, page, npage, nid); - - if (page) - dn.inode_page_locked = true; + set_new_dnode(&dn, inode, NULL, npage, nid); truncate_node(&dn); return 0; } @@ -1000,7 +998,7 @@ int remove_inode_page(struct inode *inode) if (err) return err; - err = truncate_xattr_node(inode, dn.inode_page); + err = truncate_xattr_node(inode); if (err) { f2fs_put_dnode(&dn); return err; |