diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2008-04-29 14:11:12 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-04-29 14:11:12 +0200 |
commit | e65187e6d0d541f992e684f88a7e090dcff1aac8 (patch) | |
tree | bf8af79f6f78596b8ca0f9affe94586f3a74f7eb /fs/ext4/namei.c | |
parent | ext4: Fix fallocate error path (diff) | |
download | linux-e65187e6d0d541f992e684f88a7e090dcff1aac8.tar.xz linux-e65187e6d0d541f992e684f88a7e090dcff1aac8.zip |
ext4: Enable extent format for symlinks.
This patch enables extent-formatted normal symlinks. Using extents
format allows a symlink to refer to a block number larger than 2^32
on large filesystems. We still don't enable extent format for fast
symlinks, which are contained in the inode itself.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r-- | fs/ext4/namei.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 28aa2ed4297e..68611945687d 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c @@ -2217,6 +2217,8 @@ retry: goto out_stop; } } else { + /* clear the extent format for fast symlink */ + EXT4_I(inode)->i_flags &= ~EXT4_EXTENTS_FL; inode->i_op = &ext4_fast_symlink_inode_operations; memcpy((char*)&EXT4_I(inode)->i_data,symname,l); inode->i_size = l-1; |