summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/inotail.c b/inotail.c
index 6f02f78..f9126b7 100644
--- a/inotail.c
+++ b/inotail.c
@@ -133,7 +133,6 @@ static off_t lines_to_offset_from_end(struct file_struct *f, unsigned long n_lin
{
char *buf;
off_t offset = f->st_size;
- ssize_t buffer_size = f->st_blksize;
buf = alloc_buffer(f);
@@ -141,9 +140,9 @@ static off_t lines_to_offset_from_end(struct file_struct *f, unsigned long n_lin
while (offset > 0 && n_lines > 0) {
int i;
- ssize_t rc, block_size = buffer_size; /* Size of the current block we're reading */
+ ssize_t rc, block_size = f->st_blksize; /* Size of the current block we're reading */
- if (offset < buffer_size)
+ if (offset < f->st_blksize)
block_size = offset;
/* Start of current block */
p: fix idr leak for the first cgroup root mm: memcontrol: fix documentation for compound parameter mm: memcontrol: remove BUG_ON in uncharge_list mm: fix build warnings in <linux/compaction.h> mm, thp: convert from optimistic swapin collapsing to conservative mm, thp: fix comment inconsistency for swapin readahead functions thp: update Documentation/{vm/transhuge,filesystems/proc}.txt shmem: split huge pages beyond i_size under memory pressure thp: introduce CONFIG_TRANSPARENT_HUGE_PAGECACHE khugepaged: add support of collapse for tmpfs/shmem pages shmem: make shmem_inode_info::lock irq-safe khugepaged: move up_read(mmap_sem) out of khugepaged_alloc_page() thp: extract khugepaged from mm/huge_memory.c shmem, thp: respect MADV_{NO,}HUGEPAGE for file mappings shmem: add huge pages support shmem: get_unmapped_area align huge page shmem: prepare huge= mount option and sysfs knob mm, rmap: account shmem thp pages ...
Diffstat (limited to 'Documentation/translations')