diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-08-12 08:08:03 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-08-26 07:15:01 -0400 |
commit | de93653fe31fc9439971296842dcd0280f8ab5f4 (patch) | |
tree | d4db3c55eead49b0a4f3c9e56eca372f9142d6cd /fs/f2fs/super.c | |
parent | 444c580f7e9ad29927a5d5269d576bd7cdccebb8 (diff) |
f2fs: reserve the xattr space dynamically
This patch enables the number of direct pointers inside on-disk inode block to
be changed dynamically according to the size of inline xattr space.
The number of direct pointers, ADDRS_PER_INODE, can be changed only if the file
has inline xattr flag.
The number of direct pointers that will be used by inline xattrs is defined as
F2FS_INLINE_XATTR_ADDRS.
Current patch assigns F2FS_INLINE_XATTR_ADDRS to 0 temporarily.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r-- | fs/f2fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 70ecf484e7e5..13d0a0fe49dd 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c | |||
@@ -618,7 +618,7 @@ static const struct export_operations f2fs_export_ops = { | |||
618 | 618 | ||
619 | static loff_t max_file_size(unsigned bits) | 619 | static loff_t max_file_size(unsigned bits) |
620 | { | 620 | { |
621 | loff_t result = ADDRS_PER_INODE; | 621 | loff_t result = (DEF_ADDRS_PER_INODE - F2FS_INLINE_XATTR_ADDRS); |
622 | loff_t leaf_count = ADDRS_PER_BLOCK; | 622 | loff_t leaf_count = ADDRS_PER_BLOCK; |
623 | 623 | ||
624 | /* two direct node blocks */ | 624 | /* two direct node blocks */ |