File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -5037,30 +5037,29 @@ static int statmount_mnt_opts(struct kstatmount *s, struct seq_file *seq)
5037
5037
{
5038
5038
struct vfsmount * mnt = s -> mnt ;
5039
5039
struct super_block * sb = mnt -> mnt_sb ;
5040
+ size_t start = seq -> count ;
5040
5041
int err ;
5041
5042
5042
- if (sb -> s_op -> show_options ) {
5043
- size_t start = seq -> count ;
5044
-
5045
- err = security_sb_show_options (seq , sb );
5046
- if (err )
5047
- return err ;
5043
+ err = security_sb_show_options (seq , sb );
5044
+ if (err )
5045
+ return err ;
5048
5046
5047
+ if (sb -> s_op -> show_options ) {
5049
5048
err = sb -> s_op -> show_options (seq , mnt -> mnt_root );
5050
5049
if (err )
5051
5050
return err ;
5051
+ }
5052
5052
5053
- if (unlikely (seq_has_overflowed (seq )))
5054
- return - EAGAIN ;
5053
+ if (unlikely (seq_has_overflowed (seq )))
5054
+ return - EAGAIN ;
5055
5055
5056
- if (seq -> count == start )
5057
- return 0 ;
5056
+ if (seq -> count == start )
5057
+ return 0 ;
5058
5058
5059
- /* skip leading comma */
5060
- memmove (seq -> buf + start , seq -> buf + start + 1 ,
5061
- seq -> count - start - 1 );
5062
- seq -> count -- ;
5063
- }
5059
+ /* skip leading comma */
5060
+ memmove (seq -> buf + start , seq -> buf + start + 1 ,
5061
+ seq -> count - start - 1 );
5062
+ seq -> count -- ;
5064
5063
5065
5064
return 0 ;
5066
5065
}
You can’t perform that action at this time.
0 commit comments