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
8f282b93
Commit
8f282b93
authored
Jan 14, 2003
by
Eric Sandeen
Committed by
Nathan Scott
Jan 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Merge max file offset fix - use standard Linux macros
SGI Modid: 2.5.x-xfs:slinx:135881a
parent
ef101b97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
fs/xfs/linux/xfs_linux.h
fs/xfs/linux/xfs_linux.h
+1
-0
fs/xfs/xfs_inode.h
fs/xfs/xfs_inode.h
+2
-4
No files found.
fs/xfs/linux/xfs_linux.h
View file @
8f282b93
...
...
@@ -42,6 +42,7 @@
#include <linux/sched.h>
#include <linux/bitops.h>
#include <linux/major.h>
#include <linux/pagemap.h>
#include <linux/vfs.h>
#include <asm/page.h>
...
...
fs/xfs/xfs_inode.h
View file @
8f282b93
...
...
@@ -414,11 +414,9 @@ void xfs_ifork_next_set(xfs_inode_t *ip, int w, int n);
* max file offset is 2^(31+PAGE_SHIFT) - 1 (due to linux page cache)
*
* NOTE: XFS itself can handle 2^63 - 1 (largest positive value of xfs_fsize_t)
* but Linux can't go above 2^(31+PAGE_SHIFT)-1: the Linux VM uses a 32 bit
* signed variable to index cache data, so 2^31 * PAGE_SIZE is as big as
* you can go.
* but this is the Linux limit.
*/
#define XFS_MAX_FILE_OFFSET
((long long)((1ULL<<(31+PAGE_SHIFT))-1ULL))
#define XFS_MAX_FILE_OFFSET
MAX_LFS_FILESIZE
#if XFS_WANT_FUNCS || (XFS_WANT_SPACE && XFSSO_XFS_ITOV)
struct
vnode
*
xfs_itov
(
xfs_inode_t
*
ip
);
...
...
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