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
ab6a8d3f
Commit
ab6a8d3f
authored
May 23, 2022
by
Dave Chinner
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'guilt/xfs-5.19-misc-3' into xfs-5.19-for-next
parents
4183e4f2
73c348d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
62 deletions
+2
-62
fs/xfs/libxfs/xfs_symlink_remote.c
fs/xfs/libxfs/xfs_symlink_remote.c
+1
-1
fs/xfs/xfs_attr_item.c
fs/xfs/xfs_attr_item.c
+0
-1
fs/xfs/xfs_file.c
fs/xfs/xfs_file.c
+1
-1
fs/xfs/xfs_log_recover.c
fs/xfs/xfs_log_recover.c
+0
-59
No files found.
fs/xfs/libxfs/xfs_symlink_remote.c
View file @
ab6a8d3f
...
...
@@ -213,7 +213,7 @@ xfs_symlink_shortform_verify(
/*
* Zero length symlinks should never occur in memory as they are
* never all
l
owed to exist on disk.
* never allowed to exist on disk.
*/
if
(
!
size
)
return
__this_address
;
...
...
fs/xfs/xfs_attr_item.c
View file @
ab6a8d3f
...
...
@@ -22,7 +22,6 @@
#include "xfs_attr.h"
#include "xfs_attr_item.h"
#include "xfs_trace.h"
#include "xfs_inode.h"
#include "xfs_trans_space.h"
#include "xfs_errortag.h"
#include "xfs_error.h"
...
...
fs/xfs/xfs_file.c
View file @
ab6a8d3f
...
...
@@ -576,9 +576,9 @@ xfs_file_dio_write_unaligned(
* don't even bother trying the fast path in this case.
*/
if
(
iocb
->
ki_pos
>
isize
||
iocb
->
ki_pos
+
count
>=
isize
)
{
retry_exclusive:
if
(
iocb
->
ki_flags
&
IOCB_NOWAIT
)
return
-
EAGAIN
;
retry_exclusive:
iolock
=
XFS_IOLOCK_EXCL
;
flags
=
IOMAP_DIO_FORCE_WAIT
;
}
...
...
fs/xfs/xfs_log_recover.c
View file @
ab6a8d3f
...
...
@@ -39,13 +39,6 @@ STATIC int
xlog_clear_stale_blocks
(
struct
xlog
*
,
xfs_lsn_t
);
#if defined(DEBUG)
STATIC
void
xlog_recover_check_summary
(
struct
xlog
*
);
#else
#define xlog_recover_check_summary(log)
#endif
STATIC
int
xlog_do_recovery_pass
(
struct
xlog
*
,
xfs_daddr_t
,
xfs_daddr_t
,
int
,
xfs_daddr_t
*
);
...
...
@@ -3339,8 +3332,6 @@ xlog_do_recover(
}
mp
->
m_alloc_set_aside
=
xfs_alloc_set_aside
(
mp
);
xlog_recover_check_summary
(
log
);
/* Normal transactions can now occur */
clear_bit
(
XLOG_ACTIVE_RECOVERY
,
&
log
->
l_opstate
);
return
0
;
...
...
@@ -3483,7 +3474,6 @@ xlog_recover_finish(
}
xlog_recover_process_iunlinks
(
log
);
xlog_recover_check_summary
(
log
);
/*
* Recover any CoW staging blocks that are still referenced by the
...
...
@@ -3517,52 +3507,3 @@ xlog_recover_cancel(
xlog_recover_cancel_intents
(
log
);
}
#if defined(DEBUG)
/*
* Read all of the agf and agi counters and check that they
* are consistent with the superblock counters.
*/
STATIC
void
xlog_recover_check_summary
(
struct
xlog
*
log
)
{
struct
xfs_mount
*
mp
=
log
->
l_mp
;
struct
xfs_perag
*
pag
;
struct
xfs_buf
*
agfbp
;
struct
xfs_buf
*
agibp
;
xfs_agnumber_t
agno
;
uint64_t
freeblks
;
uint64_t
itotal
;
uint64_t
ifree
;
int
error
;
freeblks
=
0LL
;
itotal
=
0LL
;
ifree
=
0LL
;
for_each_perag
(
mp
,
agno
,
pag
)
{
error
=
xfs_read_agf
(
mp
,
NULL
,
pag
->
pag_agno
,
0
,
&
agfbp
);
if
(
error
)
{
xfs_alert
(
mp
,
"%s agf read failed agno %d error %d"
,
__func__
,
pag
->
pag_agno
,
error
);
}
else
{
struct
xfs_agf
*
agfp
=
agfbp
->
b_addr
;
freeblks
+=
be32_to_cpu
(
agfp
->
agf_freeblks
)
+
be32_to_cpu
(
agfp
->
agf_flcount
);
xfs_buf_relse
(
agfbp
);
}
error
=
xfs_read_agi
(
mp
,
NULL
,
pag
->
pag_agno
,
&
agibp
);
if
(
error
)
{
xfs_alert
(
mp
,
"%s agi read failed agno %d error %d"
,
__func__
,
pag
->
pag_agno
,
error
);
}
else
{
struct
xfs_agi
*
agi
=
agibp
->
b_addr
;
itotal
+=
be32_to_cpu
(
agi
->
agi_count
);
ifree
+=
be32_to_cpu
(
agi
->
agi_freecount
);
xfs_buf_relse
(
agibp
);
}
}
}
#endif
/* DEBUG */
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