Merge branch 'xfs-misc-fixes-for-4.3-3' into for-next
This commit is contained in:
@@ -1937,7 +1937,7 @@ xfs_alloc_fix_freelist(
|
||||
struct xfs_alloc_arg targs; /* local allocation arguments */
|
||||
xfs_agblock_t bno; /* freelist block */
|
||||
xfs_extlen_t need; /* total blocks needed in freelist */
|
||||
int error;
|
||||
int error = 0;
|
||||
|
||||
if (!pag->pagf_init) {
|
||||
error = xfs_alloc_read_agf(mp, tp, args->agno, flags, &agbp);
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user