diff options
author | Chao Yu <chao2.yu@samsung.com> | 2013-11-28 02:43:07 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-12-22 20:18:04 -0500 |
commit | 01d2d1aa0648192fd1d49f7d74d7e8b85b1c585a (patch) | |
tree | bb7151c751f38bbe2ade6726c191bebaee82a49f /fs/f2fs/node.c | |
parent | aac44046a2cdf70474fee8931bc8a591fd16c8dc (diff) |
f2fs: use true and false for boolean variable
The inode_page_locked should be a boolean variable.
struct dnode_of_data {
struct inode *inode; /* vfs inode pointer */
struct page *inode_page; /* its inode page, NULL is possible */
struct page *node_page; /* cached direct node page */
nid_t nid; /* node id of the direct node block */
unsigned int ofs_in_node; /* data offset in the node page */
==> bool inode_page_locked; /* inode page is locked or not */
block_t data_blkaddr; /* block address of the node block */
};
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
[Jaegeuk Kim: add description]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/node.c')
-rw-r--r-- | fs/f2fs/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 0fe9a9720b39..d0ab00334b02 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c | |||
@@ -791,7 +791,7 @@ int truncate_xattr_node(struct inode *inode, struct page *page) | |||
791 | set_new_dnode(&dn, inode, page, npage, nid); | 791 | set_new_dnode(&dn, inode, page, npage, nid); |
792 | 792 | ||
793 | if (page) | 793 | if (page) |
794 | dn.inode_page_locked = 1; | 794 | dn.inode_page_locked = true; |
795 | truncate_node(&dn); | 795 | truncate_node(&dn); |
796 | return 0; | 796 | return 0; |
797 | } | 797 | } |