Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97859
b: refs/heads/master
c: f751aa1
h: refs/heads/master
i:
  97857: 6a59cbd
  97855: 2a18671
v: v3
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jun 8, 2008
1 parent fa490f6 commit e533796
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f0e62c3e1db9acb35b750e02cddc1fcb8cfd52b
refs/heads/master: f751aa125d1843ea4a9a264b451fd5b1639fab20
12 changes: 6 additions & 6 deletions trunk/include/linux/msdos_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@
#define MSDOS_DOT ". " /* ".", padded to MSDOS_NAME chars */
#define MSDOS_DOTDOT ".. " /* "..", padded to MSDOS_NAME chars */

/* media of boot sector */
static inline int fat_valid_media(u8 media)
{
return 0xf8 <= media || media == 0xf0;
}

#define FAT_FIRST_ENT(s, x) ((MSDOS_SB(s)->fat_bits == 32 ? 0x0FFFFF00 : \
MSDOS_SB(s)->fat_bits == 16 ? 0xFF00 : 0xF00) | (x))

Expand Down Expand Up @@ -334,6 +328,12 @@ static inline void fatwchar_to16(__u8 *dst, const wchar_t *src, size_t len)
#endif
}

/* media of boot sector */
static inline int fat_valid_media(u8 media)
{
return 0xf8 <= media || media == 0xf0;
}

/* fat/cache.c */
extern void fat_cache_inval_inode(struct inode *inode);
extern int fat_get_cluster(struct inode *inode, int cluster,
Expand Down

0 comments on commit e533796

Please sign in to comment.