diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/misc.c | 2 | ||||
-rw-r--r-- | fs/ioctl.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 654d972a88f4..88786ba02d27 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c | |||
@@ -311,8 +311,6 @@ header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , | |||
311 | buffer->Flags2 = SMBFLG2_KNOWS_LONG_NAMES; | 311 | buffer->Flags2 = SMBFLG2_KNOWS_LONG_NAMES; |
312 | buffer->Pid = cpu_to_le16((__u16)current->tgid); | 312 | buffer->Pid = cpu_to_le16((__u16)current->tgid); |
313 | buffer->PidHigh = cpu_to_le16((__u16)(current->tgid >> 16)); | 313 | buffer->PidHigh = cpu_to_le16((__u16)(current->tgid >> 16)); |
314 | spin_lock(&GlobalMid_Lock); | ||
315 | spin_unlock(&GlobalMid_Lock); | ||
316 | if (treeCon) { | 314 | if (treeCon) { |
317 | buffer->Tid = treeCon->tid; | 315 | buffer->Tid = treeCon->tid; |
318 | if (treeCon->ses) { | 316 | if (treeCon->ses) { |
diff --git a/fs/ioctl.c b/fs/ioctl.c index 33a6b7ecb8b8..d152856c371b 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c | |||
@@ -226,6 +226,8 @@ static int ioctl_fiemap(struct file *filp, unsigned long arg) | |||
226 | return error; | 226 | return error; |
227 | } | 227 | } |
228 | 228 | ||
229 | #ifdef CONFIG_BLOCK | ||
230 | |||
229 | #define blk_to_logical(inode, blk) (blk << (inode)->i_blkbits) | 231 | #define blk_to_logical(inode, blk) (blk << (inode)->i_blkbits) |
230 | #define logical_to_blk(inode, offset) (offset >> (inode)->i_blkbits); | 232 | #define logical_to_blk(inode, offset) (offset >> (inode)->i_blkbits); |
231 | 233 | ||
@@ -342,6 +344,8 @@ int generic_block_fiemap(struct inode *inode, | |||
342 | } | 344 | } |
343 | EXPORT_SYMBOL(generic_block_fiemap); | 345 | EXPORT_SYMBOL(generic_block_fiemap); |
344 | 346 | ||
347 | #endif /* CONFIG_BLOCK */ | ||
348 | |||
345 | static int file_ioctl(struct file *filp, unsigned int cmd, | 349 | static int file_ioctl(struct file *filp, unsigned int cmd, |
346 | unsigned long arg) | 350 | unsigned long arg) |
347 | { | 351 | { |