Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
438c3c8d
Commit
438c3c8d
authored
Jan 22, 2015
by
Dave Chinner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xfs-buf-type-fixes' into for-next
parents
465e2def
3443a3bc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
1 deletion
+14
-1
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.c
+5
-1
fs/xfs/libxfs/xfs_symlink_remote.c
fs/xfs/libxfs/xfs_symlink_remote.c
+2
-0
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_buf_item.c
+4
-0
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.c
+2
-0
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.c
+1
-0
No files found.
fs/xfs/libxfs/xfs_bmap.c
View file @
438c3c8d
...
...
@@ -973,7 +973,11 @@ xfs_bmap_local_to_extents(
*
firstblock
=
args
.
fsbno
;
bp
=
xfs_btree_get_bufl
(
args
.
mp
,
tp
,
args
.
fsbno
,
0
);
/* initialise the block and copy the data */
/*
* Initialise the block and copy the data
*
* Note: init_fn must set the buffer log item type correctly!
*/
init_fn
(
tp
,
bp
,
ip
,
ifp
);
/* account for the change in fork size and log everything */
...
...
fs/xfs/libxfs/xfs_symlink_remote.c
View file @
438c3c8d
...
...
@@ -178,6 +178,8 @@ xfs_symlink_local_to_remote(
struct
xfs_mount
*
mp
=
ip
->
i_mount
;
char
*
buf
;
xfs_trans_buf_set_type
(
tp
,
bp
,
XFS_BLFT_SYMLINK_BUF
);
if
(
!
xfs_sb_version_hascrc
(
&
mp
->
m_sb
))
{
bp
->
b_ops
=
NULL
;
memcpy
(
bp
->
b_addr
,
ifp
->
if_u1
.
if_data
,
ifp
->
if_bytes
);
...
...
fs/xfs/xfs_buf_item.c
View file @
438c3c8d
...
...
@@ -319,6 +319,10 @@ xfs_buf_item_format(
ASSERT
(
atomic_read
(
&
bip
->
bli_refcount
)
>
0
);
ASSERT
((
bip
->
bli_flags
&
XFS_BLI_LOGGED
)
||
(
bip
->
bli_flags
&
XFS_BLI_STALE
));
ASSERT
((
bip
->
bli_flags
&
XFS_BLI_STALE
)
||
(
xfs_blft_from_flags
(
&
bip
->
__bli_format
)
>
XFS_BLFT_UNKNOWN_BUF
&&
xfs_blft_from_flags
(
&
bip
->
__bli_format
)
<
XFS_BLFT_MAX_BUF
));
/*
* If it is an inode buffer, transfer the in-memory state to the
...
...
fs/xfs/xfs_inode.c
View file @
438c3c8d
...
...
@@ -1995,6 +1995,7 @@ xfs_iunlink(
agi
->
agi_unlinked
[
bucket_index
]
=
cpu_to_be32
(
agino
);
offset
=
offsetof
(
xfs_agi_t
,
agi_unlinked
)
+
(
sizeof
(
xfs_agino_t
)
*
bucket_index
);
xfs_trans_buf_set_type
(
tp
,
agibp
,
XFS_BLFT_AGI_BUF
);
xfs_trans_log_buf
(
tp
,
agibp
,
offset
,
(
offset
+
sizeof
(
xfs_agino_t
)
-
1
));
return
0
;
...
...
@@ -2086,6 +2087,7 @@ xfs_iunlink_remove(
agi
->
agi_unlinked
[
bucket_index
]
=
cpu_to_be32
(
next_agino
);
offset
=
offsetof
(
xfs_agi_t
,
agi_unlinked
)
+
(
sizeof
(
xfs_agino_t
)
*
bucket_index
);
xfs_trans_buf_set_type
(
tp
,
agibp
,
XFS_BLFT_AGI_BUF
);
xfs_trans_log_buf
(
tp
,
agibp
,
offset
,
(
offset
+
sizeof
(
xfs_agino_t
)
-
1
));
}
else
{
...
...
fs/xfs/xfs_trans.c
View file @
438c3c8d
...
...
@@ -472,6 +472,7 @@ xfs_trans_apply_sb_deltas(
whole
=
1
;
}
xfs_trans_buf_set_type
(
tp
,
bp
,
XFS_BLFT_SB_BUF
);
if
(
whole
)
/*
* Log the whole thing, the fields are noncontiguous.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment