mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
Merge branch 'xfs-misc-fixes-for-4.3-3' into for-next
This commit is contained in:
commit
70b33a7466
7 changed files with 34 additions and 24 deletions
|
@ -2131,6 +2131,7 @@ xfs_dir2_node_replace(
|
|||
int error; /* error return value */
|
||||
int i; /* btree level */
|
||||
xfs_ino_t inum; /* new inode number */
|
||||
int ftype; /* new file type */
|
||||
xfs_dir2_leaf_t *leaf; /* leaf structure */
|
||||
xfs_dir2_leaf_entry_t *lep; /* leaf entry being changed */
|
||||
int rval; /* internal return value */
|
||||
|
@ -2144,7 +2145,14 @@ xfs_dir2_node_replace(
|
|||
state = xfs_da_state_alloc();
|
||||
state->args = args;
|
||||
state->mp = args->dp->i_mount;
|
||||
|
||||
/*
|
||||
* We have to save new inode number and ftype since
|
||||
* xfs_da3_node_lookup_int() is going to overwrite them
|
||||
*/
|
||||
inum = args->inumber;
|
||||
ftype = args->filetype;
|
||||
|
||||
/*
|
||||
* Lookup the entry to change in the btree.
|
||||
*/
|
||||
|
@ -2182,7 +2190,7 @@ xfs_dir2_node_replace(
|
|||
* Fill in the new inode number and log the entry.
|
||||
*/
|
||||
dep->inumber = cpu_to_be64(inum);
|
||||
args->dp->d_ops->data_put_ftype(dep, args->filetype);
|
||||
args->dp->d_ops->data_put_ftype(dep, ftype);
|
||||
xfs_dir2_data_log_entry(args, state->extrablk.bp, dep);
|
||||
rval = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue