diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-06-23 20:36:08 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-08-05 00:09:53 +0300 |
commit | c9b63bd01dd8da096d079c490771ad8a049fd480 (patch) | |
tree | b6fda13486d2aec3011a7ceafa3755304eda6ec1 /fs/f2fs/f2fs.h | |
parent | eca616f8c1d6c581f3785f0ee3e2a3887e084273 (diff) | |
download | linux-c9b63bd01dd8da096d079c490771ad8a049fd480.tar.xz |
f2fs: avoid to use failed inode immediately
Before iput is called, the inode number used by a bad inode can be reassigned
to other new inode, resulting in any abnormal behaviors on the new inode.
This should not happen for the new inode.
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 516220454a4e..3aaa4b99050a 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -1343,6 +1343,7 @@ enum { FI_INC_LINK, /* need to increment i_nlink */ FI_ACL_MODE, /* indicate acl mode */ FI_NO_ALLOC, /* should not allocate any blocks */ + FI_FREE_NID, /* free allocated nide */ FI_UPDATE_DIR, /* should update inode block for consistency */ FI_DELAY_IPUT, /* used for the recovery */ FI_NO_EXTENT, /* not to use the extent cache */ |