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
nexedi
linux
Commits
d6ad3d08
Commit
d6ad3d08
authored
Feb 12, 2004
by
Nathan Scott
Browse files
Options
Browse Files
Download
Plain Diff
Merge nathans@xfs.org:/export/hose/bkroot/xfs-linux-2.6
into sgi.com:/source2/xfs-linux-2.6
parents
00651fad
f5cf34e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
fs/xfs/linux/xfs_iops.c
fs/xfs/linux/xfs_iops.c
+9
-3
fs/xfs/linux/xfs_vnode.c
fs/xfs/linux/xfs_vnode.c
+0
-1
No files found.
fs/xfs/linux/xfs_iops.c
View file @
d6ad3d08
...
@@ -82,9 +82,14 @@ validate_fields(
...
@@ -82,9 +82,14 @@ validate_fields(
va
.
va_mask
=
XFS_AT_NLINK
|
XFS_AT_SIZE
|
XFS_AT_NBLOCKS
;
va
.
va_mask
=
XFS_AT_NLINK
|
XFS_AT_SIZE
|
XFS_AT_NBLOCKS
;
VOP_GETATTR
(
vp
,
&
va
,
ATTR_LAZY
,
NULL
,
error
);
VOP_GETATTR
(
vp
,
&
va
,
ATTR_LAZY
,
NULL
,
error
);
ip
->
i_nlink
=
va
.
va_nlink
;
if
(
likely
(
!
error
))
{
ip
->
i_size
=
va
.
va_size
;
ip
->
i_nlink
=
va
.
va_nlink
;
ip
->
i_blocks
=
va
.
va_nblocks
;
ip
->
i_blocks
=
va
.
va_nblocks
;
/* we're under i_sem so i_size can't change under us */
if
(
i_size_read
(
ip
)
!=
va
.
va_size
)
i_size_write
(
ip
,
va
.
va_size
);
}
}
}
/*
/*
...
@@ -536,6 +541,7 @@ linvfs_setattr(
...
@@ -536,6 +541,7 @@ linvfs_setattr(
if
(
error
)
if
(
error
)
return
(
-
error
);
/* Positive error up from XFS */
return
(
-
error
);
/* Positive error up from XFS */
if
(
ia_valid
&
ATTR_SIZE
)
{
if
(
ia_valid
&
ATTR_SIZE
)
{
i_size_write
(
inode
,
vattr
.
va_size
);
error
=
vmtruncate
(
inode
,
attr
->
ia_size
);
error
=
vmtruncate
(
inode
,
attr
->
ia_size
);
}
}
...
...
fs/xfs/linux/xfs_vnode.c
View file @
d6ad3d08
...
@@ -213,7 +213,6 @@ vn_revalidate(
...
@@ -213,7 +213,6 @@ vn_revalidate(
inode
->
i_mtime
=
va
.
va_mtime
;
inode
->
i_mtime
=
va
.
va_mtime
;
inode
->
i_ctime
=
va
.
va_ctime
;
inode
->
i_ctime
=
va
.
va_ctime
;
inode
->
i_atime
=
va
.
va_atime
;
inode
->
i_atime
=
va
.
va_atime
;
i_size_write
(
inode
,
va
.
va_size
);
if
(
va
.
va_xflags
&
XFS_XFLAG_IMMUTABLE
)
if
(
va
.
va_xflags
&
XFS_XFLAG_IMMUTABLE
)
inode
->
i_flags
|=
S_IMMUTABLE
;
inode
->
i_flags
|=
S_IMMUTABLE
;
else
else
...
...
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