ext4: convert to use leXX_add_cpu()
Convert cpu_to_leXX(leXX_to_cpu(E1) + E2) to use leXX_add_cpu(). dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:

committed by
Theodore Ts'o

parent
6d1ab10e69
commit
ba39ebb614
@@ -1177,7 +1177,7 @@ static int ext4_ext_grow_indepth(handle_t *handle, struct inode *inode,
|
||||
le32_to_cpu(EXT_FIRST_INDEX(neh)->ei_block),
|
||||
ext4_idx_pblock(EXT_FIRST_INDEX(neh)));
|
||||
|
||||
neh->eh_depth = cpu_to_le16(le16_to_cpu(neh->eh_depth) + 1);
|
||||
le16_add_cpu(&neh->eh_depth, 1);
|
||||
ext4_mark_inode_dirty(handle, inode);
|
||||
out:
|
||||
brelse(bh);
|
||||
|
Reference in New Issue
Block a user