inline.c (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) inline.c (e2b911c53584a92266943f3b7f2cdbc19c1a4e80)
1/*
2 * Copyright (c) 2012 Taobao.
3 * Written by Tao Ma <boyu.mt@taobao.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2.1 of the GNU Lesser General Public License
7 * as published by the Free Software Foundation.
8 *

--- 420 unchanged lines hidden (view full) ---

429
430 error = ext4_xattr_ibody_inline_set(handle, inode, &i, &is);
431 if (error)
432 goto out;
433
434 memset((void *)ext4_raw_inode(&is.iloc)->i_block,
435 0, EXT4_MIN_INLINE_DATA_SIZE);
436
1/*
2 * Copyright (c) 2012 Taobao.
3 * Written by Tao Ma <boyu.mt@taobao.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2.1 of the GNU Lesser General Public License
7 * as published by the Free Software Foundation.
8 *

--- 420 unchanged lines hidden (view full) ---

429
430 error = ext4_xattr_ibody_inline_set(handle, inode, &i, &is);
431 if (error)
432 goto out;
433
434 memset((void *)ext4_raw_inode(&is.iloc)->i_block,
435 0, EXT4_MIN_INLINE_DATA_SIZE);
436
437 if (EXT4_HAS_INCOMPAT_FEATURE(inode->i_sb,
438 EXT4_FEATURE_INCOMPAT_EXTENTS)) {
437 if (ext4_has_feature_extents(inode->i_sb)) {
439 if (S_ISDIR(inode->i_mode) ||
440 S_ISREG(inode->i_mode) || S_ISLNK(inode->i_mode)) {
441 ext4_set_inode_flag(inode, EXT4_INODE_EXTENTS);
442 ext4_ext_tree_init(handle, inode);
443 }
444 }
445 ext4_clear_inode_flag(inode, EXT4_INODE_INLINE_DATA);
446

--- 1577 unchanged lines hidden ---
438 if (S_ISDIR(inode->i_mode) ||
439 S_ISREG(inode->i_mode) || S_ISLNK(inode->i_mode)) {
440 ext4_set_inode_flag(inode, EXT4_INODE_EXTENTS);
441 ext4_ext_tree_init(handle, inode);
442 }
443 }
444 ext4_clear_inode_flag(inode, EXT4_INODE_INLINE_DATA);
445

--- 1577 unchanged lines hidden ---